package com.hxiaoyi.cloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通用json实体串，前端妹子只认这个
 * @author: 黄敬意
 * @date: 2022-02-02 13:32
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    /**请求码*/
    private Integer code;
    /**请求信息*/
    private String message;
    /**请求data*/
    private T data;

    /**自定义构造方法*/
    public CommonResult(Integer code,String message){
        this(code, message,null);
    }
}
